SRC = ${wildcard *.c}
BIN = ${patsubst %.c, %, $(SRC)}
CFLAGS = -g -Wall
CC = gcc

all:$(BIN)

$(BIN):%:%.c
	@echo [CC] $<
	@$(CC) -o $@ $< $(CFLAGS)

clean:
	$(RM) $(BIN) a.out .*.*.sw?

.PHONY:all clean
